import { RMISession } from "./RMISession";
//class RMIBase
// did
export class RMIBase {
  public set rmiSession(arg1: RMISession) {
    this.session = arg1;
    this.initProxy();
  }

  protected initProxy(): void {
  }

  public get isConnected(): Boolean {
    if (
      this.session &&
      this.session.session &&
      this.session.session.communicator
    ) {
      return this.session.session.communicator.connected;
    }
    return false;
  }

  protected /* var */ session!: RMISession;
}
